package com.cty.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
@RequestMapping("hello")
public class helloController {

    @Value ("${cty.name}")
    private String name;
    @RequestMapping("boot")
    public String hello() {
        System.out.println("name = " + name);
        return "hello springBoot3!!!";
    }
}
